package zl.ordermanager.po;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Tsalesorder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tsalesorder", catalog = "ordermanager", uniqueConstraints = @UniqueConstraint(columnNames = "orderNo"))
public class Tsalesorder implements java.io.Serializable {

	// Fields

	private Integer id;

	private String orderNo;

	private String orderDate;

	private String customer;

	private String salesman;

	private String money;

	private String delivery;

	private String invoice;

	// Constructors

	/** default constructor */
	public Tsalesorder() {
	}

	/** full constructor */
	public Tsalesorder(String orderNo, String orderDate, String customer, String salesman, String money,
			String delivery, String invoice) {
		this.orderNo = orderNo;
		this.orderDate = orderDate;
		this.customer = customer;
		this.salesman = salesman;
		this.money = money;
		this.delivery = delivery;
		this.invoice = invoice;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "orderNo", unique = true, nullable = false, length = 100)
	public String getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	@Column(name = "orderDate", nullable = false, length = 24)
	public String getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	@Column(name = "customer", nullable = false, length = 200)
	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	@Column(name = "salesman", nullable = false, length = 45)
	public String getSalesman() {
		return this.salesman;
	}

	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}

	@Column(name = "money", length = 10)
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	@Column(name = "delivery", length = 10)
	public String getDelivery() {
		return delivery;
	}

	public void setDelivery(String delivery) {
		this.delivery = delivery;
	}

	@Column(name = "invoice", length = 10)
	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

}